Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove XML tagging from org.dogtagpki.common #3610

Merged
merged 1 commit into from
Jul 8, 2021

Conversation

ckelleyRH
Copy link
Contributor

No description provided.

@ckelleyRH ckelleyRH requested a review from edewata June 29, 2021 09:54
@ckelleyRH ckelleyRH mentioned this pull request Jun 29, 2021
16 tasks
@@ -90,7 +90,7 @@ public void execute(CommandLine cmd) throws Exception {
out.println(line);
}

configData = ConfigData.fromXML(sw.toString());
configData = ConfigData.fromJSON(sw.toString());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is going to change the input format for pki tps-config-modify --input <file>:
https://github.com/dogtagpki/pki/wiki/PKI-TPS-Configuration-CLI

@06shalini Is it OK if we change this CLI to take a JSON file instead of XML file?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ckelleyRH We'll need to move that page into the source repo so we can maintain different docs for different PKI versions. So PKI 10.11 will continue to use XML, but PKI 11.0 will use JSON.

Copy link
Contributor

@edewata edewata Jun 29, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

// converting Info object into XML
String xmlInfo = info.toXML();
// converting Info object into JSON
String xmlInfo = info.toJSON();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be jsonInfo :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep 👍

@ckelleyRH ckelleyRH force-pushed the xml_removal_common branch from f307b2f to 66f2824 Compare July 2, 2021 22:41
Copy link
Contributor

@edewata edewata left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I created a PR #3643 to update the doc. That PR and this one should be merged together.

@ckelleyRH
Copy link
Contributor Author

@edewata thanks! I'll wait for the approval on the other PR before merging.

@edewata
Copy link
Contributor

edewata commented Jul 8, 2021

@ckelleyRH I'll merge both PRs. Thanks!

@edewata edewata merged commit c781ab6 into dogtagpki:master Jul 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants